<template>
	<view>
		<u-steps :current="records.length" dot direction="column">
			<u-steps-item v-for="item in records" :key="item.id" :title="item.createTime" :desc="item.content" />
		</u-steps>
	</view>
</template>

<script>
	import http from '../../http';
	export default {
		data() {
			return {
				records: []
			}
		},
		methods: {
			getLog() {
				http({
					url: '/api/student/user/log',
					method: 'POST'
				}).then(res => {
					console.log(res);
					this.records = res.response
				})
			}
		},
		onLoad() {
			this.getLog()
		},
		onShow() {
			this.getLog()
		}
	}
</script>

<style>

</style>